<html>
<head>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/common/get-host-info.sub.js"></script>
<script>
  async_test((t) => {
      let w = new Worker('websocket_disconnect_worker.js');
      w.onmessage = () => {
          w.terminate();
          t.step_timeout(t.step_func_done(), 0);
      };
  }, "Web socket doesn't panic when worker disappears");
</script>
